package com.atguigu.spzx.feign.order.fallback;

import com.atguigu.spzx.feign.order.OrderFeignClient;
import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.vo.common.Result;
import lombok.extern.slf4j.Slf4j;

/**
 * @author LT
 * @create 2024-04-01-19:06
 */
@Slf4j
public class OrderFeignClientFallback implements OrderFeignClient {
    @Override
    public Result<OrderInfo> getByOrderInfoOrderNo(Long orderNo) {
        log.info("OrderFeignClientFallback...getByOrderInfoOrderNo的方法执行失败了参数OrderNO = {}",orderNo);
        return Result.fail();
    }

    @Override
    public Result updateStockAndSale(String orderNo) {
        log.info("OrderFeignClientFallback...updateStockAndSale的方法执行失败了参数OrderNo = {}",orderNo);
        return Result.fail();
    }

    @Override
    public Result updatePayTypeAndOrderStatus(Integer payType, String paymentStatus,String orderNo) {
        log.info("OrderFeignClientFallback...updatePayTypeAndOrderStatus的方法执行失败了参数payType = {},paymentStatus={},OrderNo = {}",payType,paymentStatus,orderNo);
        return Result.fail();
    }
}
